<?php




require 'database.php';

$base=new Db;



$ids=$_GET["ids"];

$ids_=explode(',',$ids);

$del=[];
for ($i = 0; $i < count($ids_); $i++) {
    
    $del=$base->doSql('select * from hkcms_category where parent_id="'.$ids_[$i].'"');
    for ($a = 0; $a < count($del); $a++) {
        $base->doSql('delete from hkcms_category where id="'.$del[$a].'"');
    }
    
    
    $hkcms_category=$base->doSql('delete from hkcms_category where id="'.$ids_[$i].'"');
}



$data=[
    "code"=>3,
    "msg"=>"操作成功",
    "data"=>"",
    "url"=>null,
    "wait"=>3
];


// if($hkcms_category){
    return json($data);
// }



